package com.yunhui.service;

import com.yunhui.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  用户的业务处理的层接口
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public interface UserService extends IService<User> {

    //根据手机号或者邮箱查询
    User selectByPhoneOrEmail(String phone_email);

    //查询用户列表
    List<User> listByPage(int index, int size, String begin, String end, String phone_email);

    int countByPage(String begin, String end, String phone_email);
}
